﻿<%@ Page Title="" Language="C#" MasterPageFile="~/InternalSite.Master" MaintainScrollPositionOnPostback="true" 
AutoEventWireup="true" CodeBehind="ExportExcel.aspx.cs" Inherits="DATN.mds.ContactManagement.ExportExcel" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainContent1" runat="server">
<div id="contentx" class="clearingfix">
                    <center>
                            <br/>
                        <h3>Xu&#7845;t Ra T&#7853;p Tin</h3>
                        <hr/>
                    </center>

              <div class="floatboxinternal">
              <center>

                  <b>Nh&#7853;p Tên File B&#7841;n Mu&#7889;n L&#432;u:</b>
                  <asp:TextBox ID="tbx_FileName" runat="server" CssClass="bty"></asp:TextBox>
                  <br/>
                  <asp:Button ID="btnExportToDoc" runat="server" Text="Xu&#7845;t Ra File Doc" CssClass="bty"
                      onclick="btnExportToDoc_Click" />

                  <asp:Button ID="btnExportToExcel" runat="server" Text="Xu&#7849;t Ra File Excel" CssClass="bty"
                      onclick="btnExportToExcel_Click" />

                  <asp:Label ID="Lb_Stt" runat="server" Text=""></asp:Label>
                  <br/>

               <br/>
    <asp:GridView ID="Grv_EEx"
                  AutoPostBack="true" 
                  CssClass = "gridviewcss"
                  runat="server"
                  RowStyle-CssClass = "Grd_Row"
                  AutoGenerateColumns= "False"
                  CellPadding="2" 
                  OnRowDataBound = "Grd_ContactAll_RowDataBound"
                    ForeColor="Black" GridLines="Vertical" ShowFooter="True" BackColor="White" 
                    BorderColor="#90abb8" BorderStyle="None" BorderWidth="1px" PageSize="30">
                  
                  <AlternatingRowStyle BackColor="White" />
                  <Columns>
            <asp:TemplateField>
                 <HeaderTemplate>
                
                    </HeaderTemplate>
              
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="20px" />
            </asp:TemplateField>
 
          <asp:TemplateField>
                <HeaderTemplate>H&#7885; Và Tên </HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Lb_LastName" 
                                runat="server" 
                                Text='<%# DataBinder.Eval(Container.DataItem, "LastName") %>'></asp:Label>
                   <asp:Label ID="Lb_FirstName" 
                                runat="server" 
                                Text='<%# DataBinder.Eval(Container.DataItem, "FirstName") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="140px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="140px" />
            </asp:TemplateField>
            
            <asp:TemplateField>
                <HeaderTemplate>Gi&#7899;i Tính</HeaderTemplate>
                <ItemTemplate>
                    <asp:Label ID="Lb_Sex" 
                                runat="server" 
                                Text='<%# DataBinder.Eval(Container.DataItem, "Sex") %>'></asp:Label>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="40px" />
            </asp:TemplateField>

            <asp:BoundField DataField="Phone" HeaderText="&#272;i&#7879;n Tho&#7841;i"
                 NullDisplayText='<img src="../Content/images/error.png" />'>  
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
            </asp:BoundField>
            
            <asp:BoundField DataField="Mail" HeaderText="Th&#432; &#272;i&#7879;n T&#7917;"
                NullDisplayText='<img src="../Content/images/error.png" alt="c&#7853;p nh&#7853;t thêm thông tin"/>'>  
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="150px" />
            </asp:BoundField>

            <asp:BoundField DataField="Habit" HeaderText="S&#7903; Thích"
                            NullDisplayText='<img src="../Content/images/error.png" />'> 
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="250px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="250px" />
                            </asp:BoundField>

       <%--<asp:BoundField DataField="City" HeaderText="Thành Ph&#7889;"
                            NullDisplayText='<center><img src="../Content/images/error.png"/></center>'>
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" />
                            </asp:BoundField>--%>

            <asp:BoundField DataField="Company" HeaderText="Công Ty"
                            NullDisplayText='<img src="../Content/images/error.png" alt="c&#7853;p nh&#7853;t thêm thông tin"/>'>  
                            <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                            <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="100px" />
                            </asp:BoundField>

      
            </Columns>
                  <FooterStyle BackColor="#004a96" />
                  <HeaderStyle BackColor="#004a96" Font-Bold="True" ForeColor="White" />
                  <PagerStyle BackColor="#80bed9" ForeColor="Black" HorizontalAlign="Right" />
                  <RowStyle BackColor="#b4cbd5" />
                  <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                  <SortedAscendingCellStyle BackColor="#FBFBF2" />
                  <SortedAscendingHeaderStyle BackColor="#848384" />
                  <SortedDescendingCellStyle BackColor="#EAEAD3" />
                  <SortedDescendingHeaderStyle BackColor="#575357" />
        </asp:GridView>
                   </center>
              </div>
              </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent2" runat="server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent3" runat="server">

</asp:Content>
